package day7.zuoye;

import java.util.Arrays;

public class Test07 {
    public static void main(String[] args) {
        double a[]=new double[10];
        int sum=0;
        double avg;
        for(int i=0;i<a.length;i++){
            a[i]=(int)(Math.random()*100);
            sum+=a[i];
        }
        avg=sum/a.length;
        System.out.println(Arrays.toString(a));
        System.out.println(avg);
        for (int i=0;i<a.length;i++){
            if (a[i]>avg){
                System.out.print(a[i]+"\t");
            }
        }
    }
}
